* {
  /* padding: 0; */
  margin: 1px 0px 0px 1px;
  border-spacing: 0px;
  position: relative;
  font-family: PingFang SC, Microsoft YaHei, Arial Medium;
}

ul {
  padding-inline-start: 0;
}

.grid-container {
  display: grid;
  grid-template-areas:
    "header header header login"
    "hrl hrl hrl hrl"
    "directory menu main rightbar"
    "footer footer footer footer";
  grid-template-columns: 160px 160px minmax(500px, 1fr) 240px;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  min-height: 450px;
  max-height: 100vh;
  min-width: 850px;
  max-width: 1200px;
  padding: 10px;
  overflow-x: scroll;
}

.header {
  grid-area: header;
  /* border-bottom: solid 1px #999; */
}
.login {
  grid-area: login;
}
.hrl {
  grid-template-areas: hrl;
  grid-column: span 3;
  height: 1px;
  background: gray;
}

.directory {
  grid-area: directory;
  /* grid-column: span 1; */
  max-height: 300px; /* 限制总高度 */
  overflow-y: auto; /* 垂直滚动条 */
  border: 1px solid #ddd;
  border-radius: 4px;
  /* padding: 10px; */
}

.directory > li {
  margin-bottom: 8px;
}

directory item {
  display: flex;
  align-items: center;
  padding: 8px;
  cursor: pointer;
  color: red;
}

.item:hover {
  background-color: #f5f5f5;
}

.arrow {
  margin-right: 8px;
  font-size: 12px;
  transition: transform 0.2s;
}

.sub-items {
  margin-left: 20px;
  display: none; /* 默认折叠 */
  padding: 5px 0;
}

/* 滚动条美化 */
.directory::-webkit-scrollbar {
  width: 6px;
}
.directory::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;
  border-radius: 3px;
}

.menu {
  grid-area: menu;
  justify-content: left;
  padding-left: 0px;
}
.main {
  grid-area: main;
  /* display: grid; */
  justify-content: left;
  align-items: first baseline;
  grid-template-columns: 1fr;
  /* grid-template-rows: auto; */
  grid-template-areas:
    "inputDiv"
    "matDiv"
    "resultDiv"
    "graphDiv";
  row-gap: 10px;
}
.rightbar {
  grid-area: rightbar;
}
/* .inputDiv,
.matDiv,
.resultDiv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: min-content;
} */

.inputDiv {
  grid-area: inputDiv;
}
.matDiv {
  grid-area: matDiv;
}
.resultDiv {
  grid-area: resultDiv;
}
.oneColumn {
  grid-column: 1;
}
.footer {
  grid-area: footer;
}

.margin0 {
  margin: 0px;
}

.centered {
  text-align: center;
}

.dspInlineblock {
  display: inline-block;
}
.dspNone {
  display: none;
}

.dspInline {
  display: inline;
}

.dspBlock {
  display: block;
}

.hidden {
  visibility: hidden;
}
.mask {
  width: 100%;
}
.width100 {
  width: 100%;
}

.width50 {
  width: 50%;
}

.widthnpx {
  width: 20px;
}

.tabbed {
  margin-left: 30px;
}

.font-20 {
  font-size: 20px;
}
.font-16 {
  font-size: 16px;
}

.font-12 {
  font-size: 12px;
}
.font-8 {
  font-size: 8px;
}

.noneTypeList {
  list-style-type: none;
  left: 0;
  margin: 0;
  /* border: black solid 1px; */
}

.normalButton,
.dropdownButton {
  height: 30px;
  background-color: #ffffffb8;
  color: black;
}
.normalButton {
  width: 120px;
}
.dropdownButton {
  width: 100px;
}
.loginButton {
  height: 50px;
  text-align: left;
  vertical-align: text-bottom;
  text-decoration: underline;
  background-color: transparent;
  font-size: 15px;
  border: none;
  margin: 2px;
}

.dragbox {
  height: 30px;
  text-align: center;
  vertical-align: text-bottom;
  font-size: 12px;
  width: 120px;
  /* display: inline-block; */
  margin: 2px;
}

.dropdown {
  margin-left: 0px;
  margin: 0;
  display: inline-block;
  position: relative;
}

.dropdown-content {
  width: 100px;
  position: absolute;
  left: 100%;
  top: 0;
  margin: 0;
}

.dragenter {
  background-color: dimgrey;
}
.dragenter {
  background-color: dimgrey;
}

.dashborder {
  border: 1px;
  border-style: dashed;
  border-color: brown;
}

.zindex100 {
  z-index: 100;
}

.bgDiv {
  position: relative;
  width: 240px;
  margin: 0;
}

.floatDel {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 60px;
  height: 20px;
}
.floatInput {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 65px;
  height: 22px;
}

.floatLabel {
  font-size: small;
  font-family: sans-serif;
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 60px;
  height: 20px;
}

#recordDiv {
  font-size: 12px;
}

textarea {
  tab-size: 8px;
  /* width: fit-content; */
  min-width: 200px;
  position: relative;
}

/* .div-editor {
  width: 240px;
  height: 120px;
  padding: 2px;
  margin: 1px;
  margin-left: 5px;
  border: 1px solid lightgray;
  border-radius: 4px;
  outline: none;
  font-family: Courier, monospace;
  font-size: 13px;
  overflow-y: auto;
  position: relative;
}

.div-editor:empty::before {
  content: attr(data-placeholder);
  color: #999;
  pointer-events: none;
  position: absolute;
} */

table.mainTable,
th,
tr,
caption {
  table-layout: fixed;
  background-color: lightcyan;
  border-collapse: collapse;
  text-align: center;
  height: auto;
  width: min-content;
  min-width: 200px;
  font-size: 15px;
  /* font-family: 'Courier New', Courier, monospace; */
  box-sizing: border-box;
  vertical-align: text-top;
  border-color: brown;
}

/* caption { */
/* text-align: left;
  text-indent: 20%;
} */

th,
td {
  min-width: 35px;
  /* width: fit-content; */
  font-size: 12px;
  border: 1px dotted #00000045;
}

label {
  font-size: 15px;
  /* font-family: 'Courier New', Courier, monospace; */
}

#canvas1 {
  box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.4);
  margin: 5px 5px 5px 5px;
}

.selected {
  border-spacing: 0px;
}

/* .floatCopy {
	position: absolute;
	right: 20px;
	bottom: 50px;
	width: 80px;
	height: 30px;
} */

mo,
mrow,
mn,
mtd {
  font-family: math;
}

mtd {
  border-bottom: darkblue 1px dashed;
}

mtd:focus {
  background-color: #e6f7ff;
  outline: none;
}

mtable {
  min-height: 4rem;
  min-width: 6rem;
}

mn[contenteditable="true"] {
  background-color: #f0f8ff;
  padding: 5px;
  border: 1px dashed #007bff;
  min-width: 50px;
  display: inline-block;
}

mn[contenteditable="true"]:focus {
  outline: 2px solid #007bff;
  background-color: #e6f7ff;
}

mn {
  display: inline;
}

input.cell {
  border: 0px;
  border-bottom: 1px;
  border-style: dotted;
  padding: 0px;
  margin: 2px;
  width: 3ch;
  display: inline;
  background-color: transparent;
}
